package com.ruoyi.system.domain.ahs;

import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * 创建订单结果返回值
 * {
 *     "code": 0,
 *     "resultMessage": "",
 *     "data": "20241219215706297144",
 *     "debugMessage": null
 * }
 *
 * @author 辛凤文
 * @since 1.0
 */
@Data
public class OrderResult implements Serializable {
    private Long code;
    private String resultMessage;
    /**
     * 返回订单编号/严选库存不存在
     */
    private String data;
    private String debugMessage;

    public boolean isSuccess() {
        return Objects.nonNull(code) && code == 0;
    }
}
